﻿@model ShivamEMR.Model.Domain.PatientDomain.Patient

@{
    ViewBag.Title = "PDashboard";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Dashboard</h2>

 @Html.ActionLink("Appointment", "CRM/Appointment", new { id=Model.ID })
 @Html.ActionLink("Admission", "New", "Admission", new { id = Model.ID },null)
 @Html.ActionLink("Treatment", "Appointment", new { id=Model.ID })
 @Html.ActionLink("Diagnostics", "Diagnostics", new { id = Model.ID })
 @Html.ActionLink("Representatives", "Representatives", new { id = Model.ID })
 @Html.ActionLink("Insurances", "Insurances", new { id = Model.ID })

<fieldset>
    <legend>Patient</legend>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">Title</div>
    <div class="display-field">@Model.Title</div>

    <div class="display-label">FirstName</div>
    <div class="display-field">@Model.FirstName</div>

    <div class="display-label">MiddleName</div>
    <div class="display-field">@Model.MiddleName</div>

    <div class="display-label">LastName</div>
    <div class="display-field">@Model.LastName</div>

    <div class="display-label">AltFirstName</div>
    <div class="display-field">@Model.AltFirstName</div>

    <div class="display-label">AltMiddleName</div>
    <div class="display-field">@Model.AltMiddleName</div>

    <div class="display-label">AltLastName</div>
    <div class="display-field">@Model.AltLastName</div>

    <div class="display-label">DateOfBirth</div>
    <div class="display-field">@String.Format("{0:g}", Model.DateOfBirth)</div>

    <div class="display-label">Barcode</div>
    <div class="display-field">@Model.Barcode</div>

    <div class="display-label">MaritalSatusID</div>
    <div class="display-field">@Model.MaritalSatusID</div>

    <div class="display-label">Sex</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Sex).ToString()</div>

    <div class="display-label">MaritalStatus</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.MaritalStatus).ToString()</div>

    <div class="display-label">Picture</div>
    <div class="display-field">@(Model.Picture == null ? "None" : Model.Picture.Title)</div>

    <div class="display-label">Addresses</div>
    <div class="display-field">@(Model.Addresses == null ? "None" : Model.Addresses.Count.ToString())</div>

    <div class="display-label">Contacts</div>
    <div class="display-field">@(Model.Contacts == null ? "None" : Model.Contacts.Count.ToString())</div>

    <div class="display-label">CitizenShips</div>
    <div class="display-field">@(Model.CitizenShips == null ? "None" : Model.CitizenShips.Count.ToString())</div>

    <div class="display-label">Informations</div>
    <div class="display-field">@(Model.Informations == null ? "None" : Model.Informations.Count.ToString())</div>

    <div class="display-label">Account</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Account).ToString()</div>

    <div class="display-label">PersonRoles</div>
    <div class="display-field">@(Model.PersonRoles == null ? "None" : Model.PersonRoles.Count.ToString())</div>

    <div class="display-label">PersonStatus</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.PersonStatus).ToString()</div>

    <div class="display-label">Groups</div>
    <div class="display-field">@(Model.Groups == null ? "None" : Model.Groups.Count.ToString())</div>

    <div class="display-label">Documents</div>
    <div class="display-field">@(Model.Documents == null ? "None" : Model.Documents.Count.ToString())</div>

    <div class="display-label">Assignments</div>
    <div class="display-field">@(Model.Assignments == null ? "None" : Model.Assignments.Count.ToString())</div>

    <div class="display-label">InteractionsWith</div>
    <div class="display-field">@(Model.InteractionsWith == null ? "None" : Model.InteractionsWith.Count.ToString())</div>

    <div class="display-label">FullName</div>
    <div class="display-field">@Model.FullName</div>

    <div class="display-label">RegistrationDate</div>
    <div class="display-field">@String.Format("{0:g}", Model.RegistrationDate)</div>

    <div class="display-label">RegisteredInBranch</div>
    <div class="display-field">@(Model.RegisteredInBranch == null ? "None" : Model.RegisteredInBranch.Name)</div>

    <div class="display-label">PatientGroups</div>
    <div class="display-field">@(Model.PatientGroups == null ? "None" : Model.PatientGroups.Count.ToString())</div>

    <div class="display-label">PatientInformations</div>
    <div class="display-field">@(Model.PatientInformations == null ? "None" : Model.PatientInformations.Count.ToString())</div>

    <div class="display-label">Treatments</div>
    <div class="display-field">@(Model.Treatments == null ? "None" : Model.Treatments.Count.ToString())</div>

    <div class="display-label">Consultations</div>
    <div class="display-field">@(Model.Consultations == null ? "None" : Model.Consultations.Count.ToString())</div>

    <div class="display-label">Admissions</div>
    <div class="display-field">@(Model.Admissions == null ? "None" : Model.Admissions.Count.ToString())</div>

    <div class="display-label">Diagnostics</div>
    <div class="display-field">@(Model.Diagnostics == null ? "None" : Model.Diagnostics.Count.ToString())</div>

    <div class="display-label">Tests</div>
    <div class="display-field">@(Model.Tests == null ? "None" : Model.Tests.Count.ToString())</div>

    <div class="display-label">Representatives</div>
    <div class="display-field">@(Model.Representatives == null ? "None" : Model.Representatives.Count.ToString())</div>

    <div class="display-label">Insurances</div>
    <div class="display-field">@(Model.Insurances == null ? "None" : Model.Insurances.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>